﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace TileMapEditor
{
    [CreateAssetMenu(fileName = "New TriggerEffect", menuName = "六边形地图编辑/触发器", order = 0)]
    [System.Serializable]
    //编辑用
    public class TriggerEffect : ScriptableObject
    {
        public int id;
        [SerializeField]
        public Trigger trigger;
        [SerializeField]
        public List<Effect> effects;
        [SerializeField]
        public List<TriggerRuleCheck> preCheck;
        public int countTime = -1;//-1为无限次
        [HideInInspector]
        public int triggerId;
        [HideInInspector]
        public List<int> effectsIds;
        [HideInInspector]
        public List<int> checkRuleId;
    }
}